package com.yunpuvip.sachet.modular.core;


import java.util.UUID;

/**
 * @ClassName ThreadContextValue
 * @Description TODO
 * @Autor wushaohong
 * @Date 2018/10/10
 * @Version 1.0
 */
public class ThreadContextValue {
    /**
     * 线程的uid
     */
    public static final ThreadLocal<String> THREAD_UID = new ThreadLocal<String>() {
        @Override
        protected String initialValue() {
            return UUID.randomUUID().toString();
        }
    };


    /**
     * 线程的User
     */
    @Deprecated
    public static final ThreadLocal<Long> THREAD_USERID = new ThreadLocal<Long>();

}
